package com.fyj.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Agency {
    @TableId(type = IdType.INPUT)
    private long id;

    private long userId;

    private String name;

    private String address;

    // 对应user表中的name
    private String userName;
    // 对应user表中的age
    private Integer age;
    // 对应user表中email
    private String email;

    @Version
    private Integer version;

    @TableLogic
    private Integer deleted;

    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


}
